package com.zhouchao.springboot.initializer;

import org.springframework.web.WebApplicationInitializer;

import javax.servlet.ServletContainerInitializer;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.HandlesTypes;
import java.util.Set;

/**
 * @Author: zhouchao
 * @Date: 2021/06/09 10:15
 * @Description:
 */
@HandlesTypes(WebApplicationInitializer.class)
public class MySpringServletContainerInitializer implements ServletContainerInitializer {
    @Override
    public void onStartup(Set<Class<?>> c, ServletContext ctx) throws ServletException {
        System.out.println("其实spring mvc已经初始化了，这里知识实例，详见org.springframework.web.SpringServletContainerInitializer");
    }
}
